<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script>
			"use strict"
			
			function foo(a, ...value){
				console.log(a, value)
				
				value.forEach(function(item, index){
					console.log(item)
				})
			}
			foo(3, 5, 8)
			
			let arr = [1, 6]
			let arr1 = [2, 3, 4, 5]
			arr = [1, ...arr1, 6]
			console.log(arr)
			console.log(...arr)
		</script>
	</body>
</html>
